package com.xu.mapper;

import com.xu.pojo.Stock;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StockMapper {

    List<Stock> getStock();

    int addStock(Stock stock);

    //删除产品
    int delStock(int id);

    //修改产品
    int updStock(Stock stock);

    Stock queryStockById(int id);
}
